import "element-plus/theme-chalk/dark/css-vars.css";
import "./assets/main.css";

import { createApp } from "vue";
import App from "./App.vue";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import { createPinia } from "pinia";
import router from "./router";

const app = createApp(App);

// 注册element plus图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 注册pinia
const pinia = createPinia();
app.use(pinia);

// 注册路由
app.use(router);

app.mount("#app");
